package com.leon.factory;

import com.leon.NetworkServer;
import com.leon.NetworkServerFactory;
import com.leon.socket.SocketServer;

import static com.leon.constant.ModelConstant.NETTY;
import static com.leon.constant.ModelConstant.NIO;

/**
 * 网络服务器工厂
 * <p>
 * Copyright (c) 2021 Choice, Inc.
 * All Rights Reserved.
 * Choice Proprietary and Confidential.
 *
 * @author longmu
 * @since 2021/9/10
 */
public class NetWorkServerFactory implements NetworkServerFactory {

    @Override
    public NetworkServer build(String model) {
        if (NIO.equals(model)) {

        }
        if (NETTY.equals(model)) {

        }
        return new SocketServer();
    }
}